package com.billionsfinance.hessian.common.zookeeper.client;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @ ClassName: ClientSideZkEvent.java
 * @ author: WeiHui-Z
 * @ date: 2016/11/21 14:38
 * @ version: v1.0.0
 */
public class ClientSideZkEvent {

	private String service;
	private ClientSideZkEventType type;
	private String data;

	public ClientSideZkEvent(String service, ClientSideZkEventType type, String data) {
		this.service = service;
		this.type = type;
		this.data = data;
	}

	public ClientSideZkEventType getType() {
		return type;
	}

	public void setType(ClientSideZkEventType type) {
		this.type = type;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public String getService() {
		return service;
	}

	public void setService(String service) {
		this.service = service;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this)
				.append("service", service)
				.append("type", type)
				.append("data", data)
				.toString();
	}
}
